\hypertarget{class_user__model}{\section{User\-\_\-model Class Reference}
\label{class_user__model}\index{User\-\_\-model@{User\-\_\-model}}
}
Inheritance diagram for User\-\_\-model\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_user__model}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_user__model_a16eca1703114ce6257eca30d93fbdaba}{User\-\_\-model} ()
\item 
\hyperlink{class_user__model_a9f1d35e1a6f9c71fc38f47bf8bc0cc96}{get\-Top\-Users} ()
\item 
\hyperlink{class_user__model_a48a9c3492291c38e6113e40e04deb2ed}{get\-All\-Users} ()
\item 
\hyperlink{class_user__model_a9702010c2b3f565a6a82ec9590fd4869}{get\-User\-By\-I\-D} (\$id)
\item 
\hyperlink{class_user__model_a96e7ce264e97f88d979f129112585e88}{get\-User\-By\-Username} (\$username)
\item 
\hyperlink{class_user__model_a03ec20b184d0b4da2b864d432d22323c}{check\-If\-Username\-Exist} (\$username)
\item 
\hyperlink{class_user__model_abff1761069a8ec04b59e71c05fd875b9}{check\-User\-And\-Password} (\$username, \$password)
\item 
\hyperlink{class_user__model_af3b55258290afc5625abf6cc2c904e5c}{add\-User} (\$username, \$password, \$mail, \$ip, \$status, \$surname, \$name, \$pro, \$size, \$weight, \$gender, \$city, \$country, \$birthday)
\item 
\hyperlink{class_user__model_ad6967f1075d385b723dc93bcd7865619}{modify\-User} (\$id, \$surname, \$name, \$pro, \$size, \$weight, \$gender, \$city, \$country, \$birthday)
\item 
\hyperlink{class_user__model_ade0473ff5a9c692f824a3373a381033e}{update\-Scalepoints} (\$id, \$scalepoints)
\item 
\hyperlink{class_user__model_ae364a95f2ffa5b2b50434fdd7da1d9f8}{delete\-User} (\$id)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The model for the user data \begin{DoxyAuthor}{Author}
Simon,Dennis,Denis 
\end{DoxyAuthor}


\subsection{Member Function Documentation}
\hypertarget{class_user__model_af3b55258290afc5625abf6cc2c904e5c}{\index{User\-\_\-model@{User\-\_\-model}!add\-User@{add\-User}}
\index{add\-User@{add\-User}!User_model@{User\-\_\-model}}
\subsubsection[{add\-User}]{\setlength{\rightskip}{0pt plus 5cm}{\bf add\-User} (
\begin{DoxyParamCaption}
\item[{\$}]{username, }
\item[{\$}]{password, }
\item[{\$}]{mail, }
\item[{\$}]{ip, }
\item[{\$}]{status, }
\item[{\$}]{surname, }
\item[{\$}]{name, }
\item[{\$}]{pro, }
\item[{\$}]{size, }
\item[{\$}]{weight, }
\item[{\$}]{gender, }
\item[{\$}]{city, }
\item[{\$}]{country, }
\item[{\$}]{birthday}
\end{DoxyParamCaption}
)}}\label{class_user__model_af3b55258290afc5625abf6cc2c904e5c}
method to add an user. returns true if the transaction was successfull 
\begin{DoxyParams}[1]{Parameters}
array & {\em \$userarray} & array with user data \\
\hline
\end{DoxyParams}
\hypertarget{class_user__model_a03ec20b184d0b4da2b864d432d22323c}{\index{User\-\_\-model@{User\-\_\-model}!check\-If\-Username\-Exist@{check\-If\-Username\-Exist}}
\index{check\-If\-Username\-Exist@{check\-If\-Username\-Exist}!User_model@{User\-\_\-model}}
\subsubsection[{check\-If\-Username\-Exist}]{\setlength{\rightskip}{0pt plus 5cm}{\bf check\-If\-Username\-Exist} (
\begin{DoxyParamCaption}
\item[{\$}]{username}
\end{DoxyParamCaption}
)}}\label{class_user__model_a03ec20b184d0b4da2b864d432d22323c}
checks if the username already exists in the D\-B 
\begin{DoxyParams}[1]{Parameters}
string & {\em \$username} & \\
\hline
\end{DoxyParams}
\hypertarget{class_user__model_abff1761069a8ec04b59e71c05fd875b9}{\index{User\-\_\-model@{User\-\_\-model}!check\-User\-And\-Password@{check\-User\-And\-Password}}
\index{check\-User\-And\-Password@{check\-User\-And\-Password}!User_model@{User\-\_\-model}}
\subsubsection[{check\-User\-And\-Password}]{\setlength{\rightskip}{0pt plus 5cm}{\bf check\-User\-And\-Password} (
\begin{DoxyParamCaption}
\item[{\$}]{username, }
\item[{\$}]{password}
\end{DoxyParamCaption}
)}}\label{class_user__model_abff1761069a8ec04b59e71c05fd875b9}
checks if the password matches to the username 
\begin{DoxyParams}[1]{Parameters}
string & {\em \$username} & \\
\hline
string & {\em \$password} & \\
\hline
\end{DoxyParams}
\hypertarget{class_user__model_ae364a95f2ffa5b2b50434fdd7da1d9f8}{\index{User\-\_\-model@{User\-\_\-model}!delete\-User@{delete\-User}}
\index{delete\-User@{delete\-User}!User_model@{User\-\_\-model}}
\subsubsection[{delete\-User}]{\setlength{\rightskip}{0pt plus 5cm}{\bf delete\-User} (
\begin{DoxyParamCaption}
\item[{\$}]{id}
\end{DoxyParamCaption}
)}}\label{class_user__model_ae364a95f2ffa5b2b50434fdd7da1d9f8}
deletes a user by the user id 
\begin{DoxyParams}[1]{Parameters}
int & {\em \$id} & user id \\
\hline
\end{DoxyParams}
\hypertarget{class_user__model_a48a9c3492291c38e6113e40e04deb2ed}{\index{User\-\_\-model@{User\-\_\-model}!get\-All\-Users@{get\-All\-Users}}
\index{get\-All\-Users@{get\-All\-Users}!User_model@{User\-\_\-model}}
\subsubsection[{get\-All\-Users}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-All\-Users} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_user__model_a48a9c3492291c38e6113e40e04deb2ed}
method to return all users and their entrys \hypertarget{class_user__model_a9f1d35e1a6f9c71fc38f47bf8bc0cc96}{\index{User\-\_\-model@{User\-\_\-model}!get\-Top\-Users@{get\-Top\-Users}}
\index{get\-Top\-Users@{get\-Top\-Users}!User_model@{User\-\_\-model}}
\subsubsection[{get\-Top\-Users}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-Top\-Users} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_user__model_a9f1d35e1a6f9c71fc38f47bf8bc0cc96}
get top10 users \hypertarget{class_user__model_a9702010c2b3f565a6a82ec9590fd4869}{\index{User\-\_\-model@{User\-\_\-model}!get\-User\-By\-I\-D@{get\-User\-By\-I\-D}}
\index{get\-User\-By\-I\-D@{get\-User\-By\-I\-D}!User_model@{User\-\_\-model}}
\subsubsection[{get\-User\-By\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-User\-By\-I\-D} (
\begin{DoxyParamCaption}
\item[{\$}]{id}
\end{DoxyParamCaption}
)}}\label{class_user__model_a9702010c2b3f565a6a82ec9590fd4869}
method to return the user by the user I\-D 
\begin{DoxyParams}[1]{Parameters}
int & {\em \$id} & \\
\hline
\end{DoxyParams}
\hypertarget{class_user__model_a96e7ce264e97f88d979f129112585e88}{\index{User\-\_\-model@{User\-\_\-model}!get\-User\-By\-Username@{get\-User\-By\-Username}}
\index{get\-User\-By\-Username@{get\-User\-By\-Username}!User_model@{User\-\_\-model}}
\subsubsection[{get\-User\-By\-Username}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-User\-By\-Username} (
\begin{DoxyParamCaption}
\item[{\$}]{username}
\end{DoxyParamCaption}
)}}\label{class_user__model_a96e7ce264e97f88d979f129112585e88}
method to return the user by the username 
\begin{DoxyParams}[1]{Parameters}
string & {\em \$username} & \\
\hline
\end{DoxyParams}
\hypertarget{class_user__model_ad6967f1075d385b723dc93bcd7865619}{\index{User\-\_\-model@{User\-\_\-model}!modify\-User@{modify\-User}}
\index{modify\-User@{modify\-User}!User_model@{User\-\_\-model}}
\subsubsection[{modify\-User}]{\setlength{\rightskip}{0pt plus 5cm}{\bf modify\-User} (
\begin{DoxyParamCaption}
\item[{\$}]{id, }
\item[{\$}]{surname, }
\item[{\$}]{name, }
\item[{\$}]{pro, }
\item[{\$}]{size, }
\item[{\$}]{weight, }
\item[{\$}]{gender, }
\item[{\$}]{city, }
\item[{\$}]{country, }
\item[{\$}]{birthday}
\end{DoxyParamCaption}
)}}\label{class_user__model_ad6967f1075d385b723dc93bcd7865619}
method to modify an user. returns true if the transaction was successfull 
\begin{DoxyParams}{Parameters}
{\em \$id} & \\
\hline
{\em \$username} & \\
\hline
{\em \$password} & \\
\hline
{\em \$mail} & \\
\hline
{\em \$surname} & \\
\hline
{\em \$name} & \\
\hline
{\em \$scalepoints} & \\
\hline
{\em \$pro} & \\
\hline
{\em \$size} & \\
\hline
{\em \$weight} & \\
\hline
{\em \$gender} & \\
\hline
{\em \$city} & \\
\hline
{\em \$country} & \\
\hline
{\em \$birthday} & \\
\hline
\end{DoxyParams}
\hypertarget{class_user__model_ade0473ff5a9c692f824a3373a381033e}{\index{User\-\_\-model@{User\-\_\-model}!update\-Scalepoints@{update\-Scalepoints}}
\index{update\-Scalepoints@{update\-Scalepoints}!User_model@{User\-\_\-model}}
\subsubsection[{update\-Scalepoints}]{\setlength{\rightskip}{0pt plus 5cm}{\bf update\-Scalepoints} (
\begin{DoxyParamCaption}
\item[{\$}]{id, }
\item[{\$}]{scalepoints}
\end{DoxyParamCaption}
)}}\label{class_user__model_ade0473ff5a9c692f824a3373a381033e}
method to update the scalepoints of one user 
\begin{DoxyParams}[1]{Parameters}
int & {\em \$id} & \\
\hline
int & {\em \$scalepoints} & \\
\hline
\end{DoxyParams}
\hypertarget{class_user__model_a16eca1703114ce6257eca30d93fbdaba}{\index{User\-\_\-model@{User\-\_\-model}!User\-\_\-model@{User\-\_\-model}}
\index{User\-\_\-model@{User\-\_\-model}!User_model@{User\-\_\-model}}
\subsubsection[{User\-\_\-model}]{\setlength{\rightskip}{0pt plus 5cm}{\bf User\-\_\-model} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_user__model_a16eca1703114ce6257eca30d93fbdaba}
Constructor 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
/\-Applications/\-M\-A\-M\-P/htdocs/\-Workspace/blp2.\-0/application/models/\hyperlink{user__model_8php}{user\-\_\-model.\-php}\end{DoxyCompactItemize}
